#include <stdio.h>
#include <stdlib.h>
#include "gmssl/rand.h" // 娉ㄦ剰 GmSSL 鍙兘鐨勫ご鏂囦欢璺緞

int main() {
	    unsigned char random_bytes[20];
	        
	        if (rand_bytes(random_bytes, sizeof(random_bytes)) != 1) {
			        fprintf(stderr, "Error generating random bytes.\n");
				        return 1;
					    }

		    printf("Random bytes: ");
		        for (int i = 0; i < sizeof(random_bytes); i++) {
				        
				        printf("%02x", random_bytes[i]);
					    }
			    printf("\n");

			        return 0;
}
